package org.ysu.service.impl;

import org.ysu.entity.Provinces;
import org.ysu.mapper.CitiesMapper;
import org.ysu.mapper.ProvincesMapper;
import org.ysu.service.ProvincesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 省 服务实现类
 * </p>
 *
 * @author ZhangYibo
 * @since 2024-08-22
 */
@Service
public class ProvincesServiceImpl extends ServiceImpl<ProvincesMapper, Provinces> implements ProvincesService {
    @Resource
    ProvincesMapper provincesMapper;
    @Override
    public String getNameById(Long rId) {
        return provincesMapper.selectNameById(rId);
    }
    @Override
    public List<Long> getAllCodes() {
        return provincesMapper.selectAllCodes();
    }
}
